package com.slt.android.cheackfrontback;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class SecondActivity extends AppCompatActivity implements View.OnClickListener {
    public static final String TAG = "cheackTest";
    Button btn2 ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seconde);
        btn2 = (Button) findViewById(R.id.btn2);
        btn2.setOnClickListener(this);
        Log.e(TAG , "---->2222--->onCreate");
    }


    @Override
    protected void onStart() {
        super.onStart();
        Log.e(TAG , "---->2222--->onStart");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.e(TAG , "---->2222--->onResume");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.e(TAG , "---->2222--->onPause");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.e(TAG , "---->2222--->onStop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.e(TAG , "---->2222--->onDestroy");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.e(TAG , "---->2222--->onRestart");
    }

    @Override
    public void onClick(View v) {
        setResult(1024);
        finish();
    }
}
